package com.travelgroup.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum RoleType implements IEnum<Integer> {
    TEAM_LEADER(0, "团长"),
    REMEMBER(1, "成员");

    @EnumValue
    private final Integer value;
    @JsonValue
    private final String type;

    RoleType(Integer value, String type) {
        this.type = type;
        this.value = value;
    }
}
